package com.itheima.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @version 1.0
 * @description <p>管理员操作行为信息 </p>
 * @package com.itheima.admin.pojo
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ad_user_opertion")
@ApiModel(value = "AdUserOpertion", description = "管理员操作行为信息")
public class AdUserOpertion implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(notes = "用户ID", dataType = "Long")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(notes = "登录设备ID", dataType = "Long")
    @TableField("equipment_id")
    private Long equipmentId;

    @ApiModelProperty(notes = "登录IP", dataType = "String")
    @TableField("ip")
    private String ip;

    @ApiModelProperty(notes = "登录地址", dataType = "String")
    @TableField("address")
    private String address;

    @ApiModelProperty(notes = "操作类型", dataType = "Integer")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(notes = "操作描述", dataType = "String")
    @TableField("description")
    private String description;

    @ApiModelProperty(notes = "登录时间", dataType = "LocalDateTime")
    @TableField("created_time")
    private LocalDateTime createdTime;


}
